--------------------------------------------------------------------------------
      name:  <unnamed>
       log:  /Users/haselswerdtj/Box Sync/Immigrants & Social Welfare/Replicatio
> n/immigsocwef_google_rep.log
  log type:  text
 opened on:   9 Jun 2020, 16:24:22

. //program:  immigsocwef_google_rep.do
. //task:    Replication of Google Trends analysis
. //project:  Social Welfare Attitudes and Immigrants as a Target Population: Ex
> perimental Evidence (Perspectives on Politics)
. //author: Jake Haselswerdt \ 2020-6-9
. 
. //program setup
. version 14

. clear all

. set linesize 80

. macro drop _all

. set scheme s1mono

. set more off

. 
. use immigsocwef_google.dta, clear
(Google Trends for 'welfare' search terms, June 2013 to June 2019 / JBH 2020-6-4
> )

. tsset yearmonth, monthly
        time variable:  yearmonth, 2013m6 to 2019m6
                delta:  1 month

. 
. tsline welfarework1319 welfareimmigrants1319 welfareblack1319 if tin(2013m6, 2
> 019m6), legend(ring(0) pos(10) col(1)) xtitle("") lpattern(dash solid dot) ysc
> ale(r(0 100)) xmtick(641(1)713) xlabel(641(12)713) /*xscale(r(652 714))*/ plot
> r(margin(medium)) tline(2015m6, lpattern(shortdash) lcolor(gs12)) ttext(65 201
> 5m6 "Trump announcement", place(w) size(small)) tline(2016m11, lpattern(shortd
> ash) lcolor(gs12)) ttext(65 2016m11 "Presidential election", place(w) size(sma
> ll)) note(Note: Numbers scaled so highest monthly result is equal to 100.)

. graph export Figure1.tif, as(tif) replace
(file Figure1.tif written in TIFF format)

. 
. log close
      name:  <unnamed>
       log:  /Users/haselswerdtj/Box Sync/Immigrants & Social Welfare/Replicatio
> n/immigsocwef_google_rep.log
  log type:  text
 closed on:   9 Jun 2020, 16:24:25
--------------------------------------------------------------------------------
